<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="../../../../WEB-INF/myTag.tld" prefix="my"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>审核举报信息</title>
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/animate.min.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/iCheck/custom.css" rel="stylesheet">
</head>
<body>
<div class="ibox-content">

		<form id="subForm" method="post" class="form-horizontal">
		<input type="hidden" name="xsid" id="xsid" value="${rlqbXssb.xsid}">
		<input type="hidden" name="tplj" id="tplj" value="${rlqbXssb.tplj}">
		<input type="hidden" name="wjlj" id="wjlj" value="${rlqbXssb.wjlj}">
		<input type="hidden" name="ssbmDcode" id="ssbmDcode" value="${rlqbXssb.ssbmDcode}">
		<input type="hidden" name="wxOpenid" id="wxOpenid" value="${rlqbXssb.wxOpenid}">
		<input type="hidden" name="scsj" value="${rlqbXssb.scsj}">
<%-- 		<input type="hidden" name="updateTime" id="updateTime" value="${rlqbXssb.updateTime}"> --%>
			<div class="form-group">
				<label class="col-sm-2 control-label">上报内容</label>
				<div class="col-sm-10">
					<textarea rows="3" cols="5" name="xsnr" readOnly="readonly"
						class="form-control">${rlqbXssb.xsnr}</textarea>
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">上报时间</label>
				<div class="col-sm-10">
					<input type="text" name="sbsj" 
						class="form-control" readOnly="readonly" value="${rlqbXssb.sbsj}" >
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">上报人</label>
				<div class="col-sm-10">
					<input type="text" name="sbr" 
						class="form-control" readOnly="readonly" value="${rlqbXssb.sbr}" >
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">上报人身份证号</label>
				<div class="col-sm-10">
					<input type="text" name="sfzh" 
						class="form-control" readOnly="readonly" value="${rlqbXssb.sfzh}" >
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">上报人手机号</label>
				<div class="col-sm-10">
					<input type="text" name="sjh" 
						class="form-control" readOnly="readonly" value="${rlqbXssb.sjh}" >
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">备注</label>
				<div class="col-sm-10">
					<input type="text" id="bz" 
						class="form-control" value="${rlqbXssb.bz}" >
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">审查人</label>
				<div class="col-sm-10">
					<input type="text" id="scr" 
						class="form-control"  value="${rlqbXssb.scr}" >
				</div>
			</div>

			<div class="hr-line-dashed"></div>

				<div class="col-sm-12">
					<button class="btn btn-primary" onclick="editRlqbXssb('1')" style="margin-left: 70%;">审查通过</button>
					<button class="btn btn-primary" onclick="editRlqbXssb('2')" style="margin-left: 2%;">审查拒绝</button>
				
				</div>
		</form>

	</div>

	<script src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js?v=2.1.4"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/content.min.js?v=1.0.0"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/toastr/toastr.min.js"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/layer/layer.js"></script>
    
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/iCheck/icheck.min.js"></script>
    
    <script type="text/javascript">
    

    var basePath = '<%=request.getContextPath()%>';
    
    toastr.options = {
  		  "closeButton": true,
  		  "debug": false,
  		  "progressBar": true,
  		  "positionClass": "toast-top-left",
  		  "showDuration": "400",
  		  "hideDuration": "1000",
  		  "timeOut": "3000",
  		  "extendedTimeOut": "1000",
  		  "showEasing": "swing",
  		  "hideEasing": "linear",
  		  "showMethod": "fadeIn",
  		  "hideMethod": "fadeOut"
  		}
    

    var editRlqbXssb = function(status){
//      	var sbsj = $('#sbsj').val();
     	var bz = $('#bz').val();
     	var scr = $('#scr').val();
     	
		var result= $("#subForm").serialize();
    	result = result+"&status="+status+"&bzm="+bz+"&scrm="+scr;
    	debugger;
    	$.ajax({
			type : "POST",
			url : basePath + "/rlqb/auditingXssbInfo.do",
			data :result,
			dataType : "json",
			success : function(msg) { 
				debugger;
				if (msg.errCode == '1') {
					parent.layerCallBack('1');
				}else{
					toastr.error(msg.errMsg, "提示");
				}
				
			},
			error : function(XMLHttpRequest, textStatus, errorThrown) {
				
				toastr.error("系统出错！", "提示");
			},
			beforeSend : function(XMLHttpRequest){
				layer.load(0, {
					  shade: [0.3,'#ccc'] //0.1透明度的白色背景
					});
			},
			complete : function(XMLHttpRequest, textStatus){
				layer.closeAll();
			}
		});
		return false;
    }
    </script>

</body>
</html>